package com.iretailer.report.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

/**
 * @Auther xjw
 * @Date 2019/1/21 0940
 * @Description
 */
@TableName(value = "s_menus")
public class Menus {
    @JSONField(name = "Id")
    @TableId(value = "Id", type = IdType.UUID)
    private String id;

    @JSONField(name = "Name")
    @TableField(value = "Name")
    private String name;

    @JSONField(name = "ParentId")
    @TableField(value = "ParentId")
    private String parentId;

    @JSONField(name = "ImageUrl")
    @TableField(value = "ImageUrl")
    private String imageUrl;

    @JSONField(name = "PageUrl")
    @TableField(value = "PageUrl")
    private String pageUrl;

    /**
     * 1 为可见的
     */
    @JSONField(name = "Visible")
    @TableField(value = "Visible")
    private Integer visible;

    @JSONField(name = "Ranked")
    @TableField(value = "Ranked")
    private Integer ranked;

    @JSONField(name = "Description")
    @TableField(value = "Description")
    private String description;

//    @JSONField(name = "Suitable")
//    @TableField(value = "Suitable")
//    private Integer suitable;
//
//    @JSONField(name = "MobileIcon")
//    @TableField(value = "MobileIcon")
//    private String mobileIcon;

    @JSONField(name = "children")
    @TableField(exist = false)
    private List<Menus> children;

    public Menus() {
    }

    public Menus(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public static Menus FirstMenus = new Menus("-", "smart_retail");

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getPageUrl() {
        return pageUrl;
    }

    public void setPageUrl(String pageUrl) {
        this.pageUrl = pageUrl;
    }

    public Integer getVisible() {
        return visible;
    }

    public void setVisible(Integer visible) {
        this.visible = visible;
    }

    public Integer getRanked() {
        return ranked;
    }

    public void setRanked(Integer ranked) {
        this.ranked = ranked;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<Menus> getChildren() {
        return children;
    }

    public void setChildren(List<Menus> children) {
        this.children = children;
    }
}
